package cn.cvs.srcevice;

import cn.cvs.dao.SysUserMapper;
import cn.cvs.pojo.SysUser;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class SysUserMapperImpl extends SqlSessionDaoSupport implements SysUserMapper {
    private SqlSessionTemplate sessionTemplate;

    @Override
    public List<SysUser> selectSysUserList(SysUser sysUser) {
        return sessionTemplate.selectList("cn.cvs.dao.SysUserMapper.selectSysUserList", sysUser);
    }

    @Override
    public int add(SysUser sysUser) {
        return 0;
    }

    public SqlSessionTemplate getSessionTemplate(){
        return sessionTemplate;
    }
    public void setSessionTemplate(SqlSessionTemplate sessionTemplate){
        this.sessionTemplate=sessionTemplate;
    }
}
